package cn.tedu.charging.order.service;

import cn.tedu.charging.order.pojo.DeviceResultParam;
import cn.tedu.charging.order.pojo.param.OrderAddParam;
import cn.tedu.charging.order.pojo.po.ChargingBillSuccessPO;

import java.util.List;

public interface OrderService  {
    String createOrder(OrderAddParam orderAddParam);
    void saveSuccessOrder(DeviceResultParam deviceResultParam);

    void saveFailOrder();

    /**
     * 通过用户id查询成功订单
     * @param userId
     * @return
     */
    List<ChargingBillSuccessPO> orderList(Integer userId);
}
